From 2c7761047a768c63ce990c9a020ee11b22102359 Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Wed, 22 May 2019 15:27:27 +0200 Subject: [PATCH] Add fmt check, check, clippy --- rust-bindings/rust/.gitlab-ci.yml | 7 +++++++ rust-bindings/rust/src/lib.rs | 1 + 2 files changed, 8 insertions(+) diff --git a/rust-bindings/rust/.gitlab-ci.yml b/rust-bindings/rust/.gitlab-ci.yml index 1a4e3590..87ee104c 100644 --- a/rust-bindings/rust/.gitlab-ci.yml +++ b/rust-bindings/rust/.gitlab-ci.yml @@ -32,9 +32,16 @@ publish_ostree-sys: when: manual # ostree +ostree_fmt: + stage +cargo fmt --package ostree -- --check + ostree: stage: build script: + - cargo fmt -- --check + - cargo check ${CURRENT_FEATURES} + - cargo clippy ${CURRENT_FEATURES} - cargo test --verbose ${CURRENT_FEATURES} cache: paths: diff --git a/rust-bindings/rust/src/lib.rs b/rust-bindings/rust/src/lib.rs index 3b60ab73..b8fc7c0f 100644 --- a/rust-bindings/rust/src/lib.rs +++ b/rust-bindings/rust/src/lib.rs @@ -15,6 +15,7 @@ use glib::Error; // code generated by gir #[allow(unused_imports)] +#[cfg_attr(rustfmt, rustfmt_skip)] mod auto; pub use crate::auto::functions::*; pub use crate::auto::*; -- 2.30.2